﻿namespace ShuttleBus.Config
{
    internal class TransportMessageFactory : ICreateMessages
    {
        public TransportMessage Create(Message message)
        {
            return new TransportMessage
                {
                    Payload = message,
                    Type = message.GetType().AssemblyQualifiedName
                };
        }
    }
}